package com.commution.hit.action.basic;

import com.commution.hit.common.sys.BaseAction;
import com.commution.hit.domain.basic.Blog;

public class MyBlogSubmitAction extends BaseAction {

	private static final long serialVersionUID = 2750085272528838124L;
	
	private String content;
	private String editorValue;
	private String title;
	private Blog blog;
	@Override
	public String execute(){
		
		 Blog blog = new Blog();
		 blog.setTitle(title);
		 blog.setContent(content);
		
		 blogService.saveBlog(blog);
		
		return SUCCESS;
	
	}
	
	
	public String viewBlog(){
		blog=	blogService.getBlog();
		
		return SUCCESS;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getEditorValue() {
		return editorValue;
	}

	public void setEditorValue(String editorValue) {
		this.editorValue = editorValue;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}


	public Blog getBlog() {
		return blog;
	}


	public void setBlog(Blog blog) {
		this.blog = blog;
	}
	


}
